package Level_two;

import java.text.DecimalFormat;
import java.util.Scanner;

public class Seven {
    public static void main(String[] args) {
        System.out.println("请输入一个整数：");
        int x = new Scanner(System.in).nextInt();
        int y = 0;
        if (x < 0) {
            y = -1;
        } else if (x == 0) {
            y = 0;
        } else {
            y = 1;
        }
        System.out.println("x=" + x + ",y=" + y);
    }
}


